package ar.org.sstuyv

import geb.Browser



class LoginUsaPageTest {

	void testSomething() {
		loginUser()
	  }
	  
	  def loginUser(){
		  Browser.drive {
			  to LoginPage
			  assert at(LoginPage)
	  
			  loginForm.with  {
				  campoUser = "pepe"
				  campoPassword = "grillo"
			  }
			  submit
			  assert( title == 'Login')
			  
			  loginForm.with  {
				  campoUser = "morolucas"
				  campoPassword = "morolucas"
			  }
			  submit
			  assert at(MenuPrincipalPage)
	  
		  }
	  }
	
}
